<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	{block name="title"}{/block}
	<link rel="stylesheet" type="text/css" href="__STATIC__/layui/css/layui.css">
	<link rel="stylesheet" type="text/css" href="__STATIC__/{$theme}/css/common.css">
	{block name="css"}{/block}
</head>
<body>

	<header class="header">
		<div class="logo">
			<a href="" title="Logo">
				<img src="/uploads/images/{:site('siteLogo')}" alt="logo">
			</a>
		</div>
		<div class="left-nav">
			<ul class="layui-nav" lay-filter="">
				{html:nav id="v"}
					<li class="layui-nav-item {if $v.active}layui-this{/if}">
		  				<a href="{$v.link}">{$v.name}</a>
		  			</li>
				{/html:nav}
				{if session('user.agent')}
					<li class="layui-nav-item">
		  				<a href="{:url('index/agent/confirm')}">充值审核</a>
		  			</li>
		  		{/if}
			</ul>
		</div>
		<div class="right-nav">
			<ul class="layui-nav">
				{if !session('?user')}
					<li class="layui-nav-item">
			  			<a href="{:url('index/user/login')}"><i class="layui-icon">&#xe609;</i>&nbsp;登录</a>
			  		</li>
			  		<li class="layui-nav-item">
			  			<a href="{:url('index/user/register')}"><i class="layui-icon">&#xe61f;</i>&nbsp;注册</a>
			  		</li>
				{else /}
			  		<li class="layui-nav-item">
			  			<a href="javascript:;"><i class="layui-icon">&#xe612;</i>&nbsp;{:session('user.username')}</a>
					    <dl class="layui-nav-child">
					      <dd><a href="{:url('index/user/logout')}"><i class="layui-icon">&#xe623;</i>&nbsp;注销</a></dd>
					    </dl>
			  		</li>
		  		{/if}
			</ul>
		</div>
	</header>
	
	<div class="content">
		{block name="content"}{/block}
	</div>

	<footer class="footer">
		<div id="rightArrow"><a href="javascript:;" title="在线客户"></a></div>
		<div id="floatDivBoxs">
			<div class="floatDtt">在线客服</div>
		    <div class="floatShadow">
		        <ul class="floatDqq">
		        	{foreach :config('service')['service'] as $v}
		            	<li style="padding-left:0px;"><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={$v.qq}&site=qq&menu=yes"><img src="__STATIC__/{$theme}/img/qq.png" align="absmiddle">&nbsp;&nbsp;{$v.name}</a></li>
		            {/foreach}
		        </ul>
		    </div>
		</div>
		<p>© 2014-2016 {:site('siteName')}网络服务发展有限公司</p>
		<p>{:site('recordNum')}</p>
	</footer>
	
	<script src="__STATIC__/{$theme}/js/jquery.min.js"></script>
	<script src="__STATIC__/layui/layui.js" type="text/javascript"></script>
	<script src="__STATIC__/{$theme}/js/common.js" type="text/javascript"></script>
	<script type="text/javascript">
		var flag=1;
		$('#rightArrow').click(function(){
			if(flag==1){
				$("#floatDivBoxs").animate({right: '-175px'},300);
				$(this).animate({right: '-5px'},300);
				$(this).css('background-position','-50px 0');
				flag=0;
			}else{
				$("#floatDivBoxs").animate({right: '0'},300);
				$(this).animate({right: '170px'},300);
				$(this).css('background-position','0px 0');
				flag=1;
			}
		});
	</script>
	{block name="script"}{/block}
	{:site('siteCount')}
</body>
</html>